import os
import threading
import time

from PIL import ImageGrab

now_time = time.strftime('%Y%m%d%H%M%S', time.localtime(time.time()))
pic_name = os.path.join("c:\\logs", now_time + '-01.png')

pic = ImageGrab.grab()
pic.save_config(pic_name)
